package com.company.service.impl;

import com.company.entity.User;
import com.company.service.ISysUserService;

import java.io.*;
import java.security.Key;
import java.util.*;

public class SysUserServiceImpl implements ISysUserService {
    @Override
    public boolean login(int phone) {
        return false;
    }

    @Override
    public int register(User user, int phone) {
        if (hashMap.containsKey(phone)) {
            return -1;
        } else {
            hashMap.put(phone, user);
            return 1;
        }
    }

}
